package com.jenings.shop.service;

import com.jenings.shop.entity.Users;
import com.jenings.shop.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;
    public List<Users> selectAll(){
        return userMapper.selectAll();
    }
    public List<Users> selectSome(String username){
        return userMapper.selectSome(username);
    }
    public Users selectByte(String username){
        return userMapper.selectByte(username);
    }
    public boolean updateByte(Users users){
        return userMapper.updateByte(users);
    }
    public boolean insertByte(Users users){
        return userMapper.insertByte(users);
    }
    public boolean delByte(Integer userid){
        return userMapper.delByte(userid);
    }
}
